﻿//======================================================
//==     (c)2008 aspxcms inc by NeTCMS v1.0              ==
//==          Forum:bbs.aspxcms.com                   ==
//==         Website:www.aspxcms.com                  ==
//======================================================
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using NetCMS.Content;

public partial class user_photo_photoclass_up : NetCMS.Web.UI.UserPage
{
    Photo pho = new Photo();
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.CacheControl = "no-cache";
        
        if (!IsPostBack)
        {
            string ClassID = Request.QueryString["ClassID"];
            this.ClassName.Text = pho.sel_phoClassName(ClassID);
        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        DateTime Creatime = DateTime.Now;
        string ClassName =Request.Form["ClassName"].ToString();
        string ClassIDs = Request.QueryString["ClassID"];
        if (pho.update_phoBumClass(ClassName, Creatime, ClassIDs) != 0)
            {
                PageRight("修改分类成功", "photoclass.aspx");
            }
            else 
            {
                PageError("修改失败", "photoclass.aspx");
            }
    }
}



